package com.meihua.shellapp.bean;

import com.meihua.shellapp.base.BaseBean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by ${zhangyuanchao} on 2017/10/14.
 */

public class ProductIndexBean extends BaseBean {


    /**
     * data : {"product":[{"id":"2","cat_name":"中国人寿","product":[{"id":"91","product_name":"天安健康源2号两全","product_label":"2","supplier_id":"83","product_img":"Upload/Product/20170810/598bebcc1a1c6.jpg","product_type":"1","turnover":"0"},{"id":"92","product_name":"同方全球康健一生","product_label":"2","supplier_id":"84","product_img":"Upload/Product/20170810/598beb9fbb3ba.jpg","product_type":"1","turnover":"0"},{"id":"93","product_name":"长城康健人生两全","product_label":"2","supplier_id":"82","product_img":"Upload/Product/20170810/598beb7788a2b.jpg","product_type":"1","turnover":"0"}]},{"id":"6","cat_name":"寿险下","product":[{"id":"94","product_name":"中意悦享安康重大疾病","product_label":"2","supplier_id":"85","product_img":"","product_type":"1","turnover":"0"}]},{"id":"15","cat_name":"342423","product":[]},{"id":"21","cat_name":"定期寿险","product":[]},{"id":"22","cat_name":"终身寿险","product":[]},{"id":"23","cat_name":"两全寿险","product":[]}],"type_id":[{"id":"1","cat_pic":null}]}
     */

    private DataBean data;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        private List<ProductBeanX> product;
        private List<TypeIdBean> type_id;

        public List<ProductBeanX> getProduct() {
            return product;
        }

        public void setProduct(List<ProductBeanX> product) {
            this.product = product;
        }

        public List<TypeIdBean> getType_id() {
            return type_id;
        }

        public void setType_id(List<TypeIdBean> type_id) {
            this.type_id = type_id;
        }

        public static class ProductBeanX {
            /**
             * id : 2
             * cat_name : 中国人寿
             * product : [{"id":"91","product_name":"天安健康源2号两全","product_label":"2","supplier_id":"83","product_img":"Upload/Product/20170810/598bebcc1a1c6.jpg","product_type":"1","turnover":"0"},{"id":"92","product_name":"同方全球康健一生","product_label":"2","supplier_id":"84","product_img":"Upload/Product/20170810/598beb9fbb3ba.jpg","product_type":"1","turnover":"0"},{"id":"93","product_name":"长城康健人生两全","product_label":"2","supplier_id":"82","product_img":"Upload/Product/20170810/598beb7788a2b.jpg","product_type":"1","turnover":"0"}]
             */

            private String id;
            private String cat_name;
            private List<ProductBean> product;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getCat_name() {
                return cat_name;
            }

            public void setCat_name(String cat_name) {
                this.cat_name = cat_name;
            }

            public List<ProductBean> getProduct() {
                return product;
            }

            public void setProduct(List<ProductBean> product) {
                this.product = product;
            }

            public static class ProductBean implements Serializable{
                /**
                 * id : 91
                 * product_name : 天安健康源2号两全
                 * product_label : 2
                 * supplier_id : 83
                 * product_img : Upload/Product/20170810/598bebcc1a1c6.jpg
                 * product_type : 1
                 * turnover : 0
                 */

                private String id;
                private String product_name;
                private String product_label;
                private String supplier_id;
                private String product_img;
                private String product_type;
                private String turnover;
                private String url;

                public String getUrl() {
                    return url;
                }

                public void setUrl(String url) {
                    this.url = url;
                }

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getProduct_name() {
                    return product_name;
                }

                public void setProduct_name(String product_name) {
                    this.product_name = product_name;
                }

                public String getProduct_label() {
                    return product_label;
                }

                public void setProduct_label(String product_label) {
                    this.product_label = product_label;
                }

                public String getSupplier_id() {
                    return supplier_id;
                }

                public void setSupplier_id(String supplier_id) {
                    this.supplier_id = supplier_id;
                }

                public String getProduct_img() {
                    return product_img;
                }

                public void setProduct_img(String product_img) {
                    this.product_img = product_img;
                }

                public String getProduct_type() {
                    return product_type;
                }

                public void setProduct_type(String product_type) {
                    this.product_type = product_type;
                }

                public String getTurnover() {
                    return turnover;
                }

                public void setTurnover(String turnover) {
                    this.turnover = turnover;
                }
            }

        }

        public static class TypeIdBean {
            /**
             * id : 1
             * cat_pic : null
             */

            private String id;
            private Object cat_pic;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public Object getCat_pic() {
                return cat_pic;
            }

            public void setCat_pic(Object cat_pic) {
                this.cat_pic = cat_pic;
            }
        }
    }
}
